package use.annotation;

import java.util.List;

public class PasswordUtil {

    @UseCase(id = 47, description = "validatePassword")
    public boolean validataPassword(String password) {
        return password.matches("\\w*\\d||w*");
    }
    @UseCase(id = 47, description = "encryptPassword")
    public String encryptPassword(String password) {
        return new StringBuilder(password).reverse().toString();
    }
    @UseCase(id = 47, description = "checkForNewPassword")
    public boolean checkForNewPassword(List<String> prePassword, String password) {
        return !prePassword.contains(password);
    }
}
